home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / libpam-runtime.postinst < prev    next >
Encoding:
Text File  |  2006-12-20  |  556 b   |  22 lines

  1. #!/bin/sh -e
  2.  
  3. # If the user has removed the config file, respect this sign of dementia
  4. # -- only create on package install.
  5.  
  6. if [ -z "$2" ] || dpkg --compare-versions "$2" lt 0.79-3ubuntu5 
  7. then
  8.     for configfile in common-auth common-account common-session  \
  9.         common-password
  10.     do
  11.         if [ ! -f /etc/pam.d/$configfile ] || \
  12.             fgrep -q `md5sum /etc/pam.d/$configfile` \
  13.             /usr/share/pam/$configfile.md5sums 2>/dev/null
  14.         then
  15.             cp /usr/share/pam/$configfile /etc/pam.d/
  16.         fi
  17.     done
  18.         rm -f /etc/pam.d/other.pre-upgrade 2>/dev/null || true
  19. fi
  20.  
  21.  
  22.